﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SharePoint;

namespace SPContentCreator.Code
{
    public class Site : IDisposable
    {
        public SPSite spSite;
        public SPWeb spWeb;

        public Site(string url)
        {
            spSite = new SPSite(url);
            spWeb = spSite.OpenWeb();
        }

        void IDisposable.Dispose()
        {
            if (spSite != null)
                spSite.Dispose();
        }
    }
}
